﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMoney.IStock.Client.Models.QQ
{
    /// <summary>
    /// 持仓股票
    /// </summary>
    [Serializable]
    public class Stocks : QQCommon
    {
        public List<StocksData> data { get; set; }
    }

    [Serializable]
    public class StocksData
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string stock_id { get; set; }
        /// <summary>
        /// QQ号码
        /// </summary>
        public string user_qq { get; set; }
        /// <summary>
        /// 股票代码
        /// </summary>
        public string stock_code { get; set; }
        /// <summary>
        /// 历史持股数
        /// </summary>
        public string stock_count { get; set; }
        /// <summary>
        /// 当日购买股票数（当日不能卖出）
        /// </summary>
        public string stock_count_today { get; set; }
        /// <summary>
        /// 冻结股票数
        /// </summary>
        public string stock_count_freezed { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        public string stock_cost { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string c_time { get; set; }
        /// <summary>
        /// 股票名称
        /// </summary>
        public string stock_name { get; set; }
        /// <summary>
        /// 盈亏
        /// </summary>
        public string yinkui { get; set; }

        //当日可卖股票=stock_count-stock_count_freezed 
        //单日总共持有股票数= stock_count+stock_count_today
    }
}
